package com.trainfinder.requestor;

public class ExtractContent implements Extractor {

	/**
	 * @param args
	 */
	public String extract(String data) {
		final String STARTS_WITH = "\r\n\r\n";		
		final String FROM = STARTS_WITH;


		String result ="";
		
		int start = data.indexOf(STARTS_WITH);

		if (start != -1) {
			int end = data.length()-2;

			if (end != -1) {
				result = data.substring(start+ FROM.length(), end);
			}

		}
		
		return result;
	}
}
